# Maintainer:
pkgname=py3-qtwebengine
pkgver=5.15.6
pkgrel=5
pkgdesc="Python 3 bindings for QtWebEngine"
url="https://www.riverbankcomputing.com/software/pyqtwebengine/intro"
# ppc64le and s390x are not supported
# armhf blocked by py3-qt5 -> qt5-qtdeclarative
# riscv64 blocked by qt5-qtwebengine
arch="all !ppc64le !s390x !armhf !riscv64"
license="GPL-2.0-or-later"
depends="python3"
makedepends="
	py3-pyqt-builder
	py3-qt5
	py3-sip
	python3-dev
	qt5-qtwebengine-dev
	"
source="https://pypi.python.org/packages/source/P/PyQtWebEngine/PyQtWebEngine-$pkgver.tar.gz"
builddir="$srcdir"/PyQtWebEngine-"$pkgver"

build() {
	sip-build \
		--no-make \
		--qmake /usr/lib/qt5/bin/qmake \
		--api-dir /usr/share/qt5/qsci/api/python
	make -C build
}

check() {
	make -C build check
}

package() {
	make -j1 DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" -C build install
}

sha512sums="
f744fb0468ccbc79aad23d941c8e96d537ceeedfae215c7095dbf36b04b3dd042f0ff80aeca25a23715964b7d6db3bc80513f509d15c6dd6bd51e42a1a4e1975  PyQtWebEngine-5.15.6.tar.gz
"
